package com.lychee.demo.domain.bo;

import com.lychee.common.core.base.domain.BaseEntity;
import com.lychee.common.core.validate.AddGroup;
import com.lychee.common.core.validate.EditGroup;
import com.lychee.demo.domain.TestMoreDemo;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 测试表业务对象 test_more_demo
 *
 * @author DingHao
 * @date 2025-08-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TestMoreDemo.class, reverseConvertGenerate = false)
public class TestMoreDemoBo extends BaseEntity {

    /**
     * 主键
     */
    private Long id;

    /**
     * 部门id
     */
    private Long deptId;

    /**
     * 姓名
     */
    @NotBlank(message = "姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 年龄
     */
    @NotNull(message = "年龄不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long age;

    /**
     * 性别
     */
    @NotBlank(message = "性别不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sex;

    /**
     * 图片
     */
    private String picture;

    /**
     * 介绍
     */
    private String introduction;


}
